package rbm.modelado.datos.elementos;

import rbm.modelado.datos.elementos.interfaces.Tablero;

//Elemento no colocado en el juego

public class Tablero2DImpl implements Tablero {

	private Boolean[][] board;
	
	public Tablero2DImpl (Boolean[][] s){
		board = s;
	}
	public Tablero2DImpl (Integer xDim,Integer yDim){
		board = new Boolean [xDim][yDim];
	}
	public Boolean[][] getShape() {
		return board;
	}

	public Integer getXDim() {
		return board.length;
	}

	public Integer getYDim() {
		return board[0].length;
	}

	public Object getContentXY(Integer x, Integer y) {
		return board[x][y];
	}

	public void setContentXY(Integer x, Integer y, Object b) {

		board [x][y]=(Boolean) b;
		
	}



}
